{
*******************************************************************************
-------------------------------------------------------------------------------
Kliper - next generation multimedia player
Copyright (C) Marcin 'vi4m' Kliks (vi4m@wp.pl)
Copyright (C) Tomasz 'dymsza' Odrobny (dymsza@gmail.com)
-------------------------------------------------------------------------------
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*******************************************************************************
}
unit engineform;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ExtCtrls, StdCtrls;

type
  TTLForm = class(TForm)
    Memo1: TMemo;
    Button1: TButton;
    Button2: TButton;
    sd: TSaveDialog;
    Button3: TButton;
    Memo2: TMemo;
    procedure Button2Click(Sender: TObject);
    procedure Button1Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);

  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  TLForm: TTLForm;

implementation
uses core, main;
{$R *.dfm}

procedure TTLForm.Button2Click(Sender: TObject);
begin
  close;
end;

procedure TTLForm.Button1Click(Sender: TObject);
begin
  if sd.Execute then begin
    memo1.Lines.SaveToFile(sd.FileName);
  end;
end;

procedure TTLForm.Button3Click(Sender: TObject);
begin
  memo1.SelectAll;
  memo1.CopyToClipboard;
  memo1.SelLength := 0;
end;

end.
